<?php
namespace  app\middleware;
use think\Request;

class  ApiMiddleware{

    /**
     * 处理请求
     *
     * @param Request $request
     * @param Closure $next
     * @return Response
     */
    public function handle(Request $request,\Closure $next){
        //从redis接口中获取数据
        return $next($request);
    }
}